package com.yang;

import com.yang.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.sql.DataSource;
import java.util.List;

/**
 * Hello world!
 *
 */
 @SpringBootApplication
public class App {

     @Autowired
     public static UserMapper userMapper;

    public static void main( String[] args ) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
//        DataSource dataSource = context.getBean(DataSource.class);
//        System.out.println(dataSource);
//        System.out.println(dataSource.getClass());

    }
}
